import request from '@/utils/request'

// 查询基因解释列表
export function listSummary(query) {
  return request({
    url: '/gene-face/geneSummary/list',
    method: 'get',
    params: query
  })
}

// 查询基因解释详细
export function getSummary(id) {
  return request({
    url: '/gene-face/geneSummary/' + id,
    method: 'get'
  })
}

// 新增基因解释
export function addSummary(data) {
  return request({
    url: '/gene-face/geneSummary/add',
    method: 'post',
    data: data
  })
}

// 修改基因解释
export function updateSummary(data) {
  return request({
    url: '/gene-face/geneSummary/update',
    method: 'post',
    data: data
  })
}

// 删除基因解释
export function delSummary(id) {
  return request({
    url: '/gene-face/geneSummary/' + id,
    method: 'delete'
  })
}

// 导出基因解释
export function exportSummary(query) {
  return request({
    url: '/gene-face/geneSummary/export',
    method: 'get',
    params: query
  })
}
